// JSON Java Class Generator
// Written by Bruce Bao
// Used for API: 
package com.zuihai.app.mvp.model.entity;

import com.zuihai.app.mvp.model.api.Api;

import java.io.Serializable;

public class MyWalletMainClass implements Serializable{
	private String code;
	private String msg;
	private MyWalletData data;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public MyWalletData getData() {
		return data;
	}

	public void setData(MyWalletData data) {
		this.data = data;
	}

	/**
	 * 请求是否成功
	 *
	 * @return
	 */
	public boolean isSuccess() {
		if (code.equals(Api.RequestSuccess)) {
			return true;
		} else {
			return false;
		}
	}


}
